package com.qxbb.report.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.qxbb.report.utils.CustomDoubleSerialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @version 1.0
 * @author: pebble
 * @data 2023/10/10 14:38
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ProductStatisticsVO {


    /**
     * 商品名称
     */
    private String  commodity;

    /**
     * 商品条码
     */
    private String barcode;

    /**
     * 净售量
     */
    private int netSalesVolume;

    /**
     * 赠品量
     */
    private int giftQuantity;

    /**
     * 净售额
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private double netSalesAmount;

    /**
     * 净成本
     */
    private int netCost;

    /**
     * 利润
     */
    @JsonSerialize(using = CustomDoubleSerialize.class)
    private double profit;

    /**
     * 压缩图片是否存在
     */
    private boolean  exist;

    /**
     * 是否是自营产品
     */
    private Integer chainId;


}
